const request = require('../utils/request.js')

export const list = (page) => {
  return request.request('GET','/cake/adress',{page})
}

export const del = (id) => {
  return request.request('DELETE','/cake/adress',[id])
}

export const find = (adressId) => {
  return request.request('GET','/cake/addressinfo',{adressId})
}

export const edit = (adress) => {
  return request.request('PUT','/cake/adress/'+adress.addressId,adress)
}

export const add = (adress) => {
  return request.request('POST','/cake/adress',adress)
}